import  axios from './request'
// 验证用户名能不能用
export async function checkusername(data){
        return  await   axios({ 
                method:"post",
                 url:"/user/checkusername",
                 data
            })
}


// 
// 登录
export async function login(data){
        return  await   axios({ 
                    method:"post",
                 url:"/user/login",
                 data
            })
}
// 登录后获取浏览记录
export async function getuserhistory(data){
        return  await   axios({ 
                method:"post",
                url:"/user/getuserhistory",
            })
}
// 注册
export async function register(data){
        return  await   axios({ 
            method:"post",
                 url:"/user/register",
                 data
            })
}